import request from '@/fetch/fetch'

export function getCitylist(obj){    // 房源列表页搜索列表
    return request({
        url: '/api/web/list/search-list',
        method: 'post',
        data:obj
    })
}

export function getHouseDetail(obj){    // 楼盘详情
    return request({
        url: '/api/web/detail/building-info',
        method: 'post',
        data:obj
    })
}

export function getRoomDetail(obj){    // 房源配置
    return request({
        url: '/api/web/detail/house-facilities',
        method: 'post',
        data:obj
    })
}

export function getShareDetail(obj){    // 房源详情共享
    return request({
        url: '/api/web/detail/house-list',
        method: 'post',
        data:obj
    })
}

export function Addappointment(obj){    // 一键预约
    return request({
        url: '/api/web/client/add-client-appointment',
        method: 'post',
        data:obj
    })
}

export function getAgentUserinfo(obj){    // 经纪人
    return request({
        url: '/api/web/list/get_agent_userinfo',
        method: 'post',
        data:obj
    })
}

export function HouseCollection(obj){    // 收藏房源
    return request({
        url: '/api/web/collection/add-collection',
        method: 'post',
        data:obj
    })
}

export function getCollection(obj){    // 查询是否收藏房源
    return request({
        url: '/api/web/detail/checkout_collect',
        method: 'post',
        data:obj
    })
}

export function deleteCollection(obj){    // 取消收藏房源
    return request({
        url: '/api/web/collection/delete-collection',
        method: 'post',
        data:obj
    })
}

export function checkUserType(obj){    // 取消收藏房源
    return request({
        url: '/api/web/index/send-client-code',
        method: 'post',
        data:obj
    })
}

export function RecommendHouse(obj){    // 推荐房源
    return request({
        url: '/api/web/list/recommend_house',
        method: 'post',
        data:obj
    })
}

export function HouseBooking(obj){    // 预订房源
    return request({
        url: '/api/web/client/add-client-booking',
        method: 'post',
        data:obj
    })
}

export function getHouselist(obj){    // 搜索条件城市列表
    return request({
        url: '/api/web/list/city-info',
        method: 'post',
        data:obj
    })
}

export function getRegionlist(obj){    // 区域列表
    return request({
        url: '/api/web/list/region-cityId',
        method: 'post',
        data:obj
    })
}

export function getSubwaylist(obj){    // 搜索条件地铁列表
    return request({
        url: '/api/web/list/subway-cityId',
        method: 'post',
        data:obj
    })
}

export function getRegion(obj){    // 搜索条件区域列表
    return request({
        url: '/api/web/list/country-city-district',
        method: 'post',
        data:obj
    })
}

export function getcompute(obj){    // 楼盘详情优惠
    return request({
        url: '/api/web/detail/house-compute',
        method: 'post',
        data:obj
    })
}

export function CreateGroup(obj){    // IM群聊
    return request({
        url: '/api/web/list/recommend_im',
        method: 'post',
        data:obj
    })
}

export function CreateP2P(obj){    // IM群聊
    return request({
        url: '/api/web/list/recommend_im_com',
        method: 'post',
        data:obj
    })
}